<?php

/**

 * 我的商城

 *

 *

 *

 * * @网店运维 (c) 2015-2018  Inc. (http://www.shopwwi.com)
 * @license    http://www.shopwwi.c om
 * @link       交流群号：111731672
 * @since      网店运维提供技术支持 授权请购买shopnc授权

 */



//use Shopnc\Tpl;



defined('InShopNC') or exit('Access Invalid!');



class shopcartControl extends mobileHomeControl
{


    public function __construct()
    {

        parent::__construct();
        $this->isLogin();

    }

    public function indexOp()
    {
        $member_info = $this->member_info;
        $model_cart = Model('cart');

        //购物车列表
        $cart_list  = $model_cart->listCart('db',array('buyer_id'=>$_SESSION['member_id']));
        $cart_count = $model_cart->countCartByMemberId($_SESSION['member_id']);
        Tpl::output('home_member_info', $member_info);
        Tpl::output('cart_count', $cart_count);
        Tpl::output('cart_list', $cart_list);
        Tpl::showpage('shopcart_index');
    }


}